<template>
  <img alt="Vue logo" src="./assets/logo.png" />
  <br />
  {{ msg }}
  <HelloWorld msg="vue" />
</template>

<script>
import HelloWorld from "./components/HelloWorld.vue";
export default {
  name: "App",
  components: {
    HelloWorld,
  },
  data() {
    return {
      msg: "初始化",
    };
  },
  mounted() {
    const loading = this.$loading();
    let tempthis = this;
    const timeId = setInterval(() => {
      if (tempthis.$store.state.ready) {
        clearInterval(timeId);
        loading.close();
        tempthis.msg = "服务已启动";        
      }
    }, 1000);
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
